#include "mythread.h"
#include <QDebug>

MyThread::MyThread(const QString& name, QObject *parent)
    : QThread(parent)
    , name(name)
{

}

void MyThread::run()
{
    for (int i = 1; i <= 100; ++i){
        qDebug() <<  name << QString::number(i);
    }
}
